class Regexp
  
  def self.build(*args)
    args = args.map{|n| n.to_a if n.kind_of?(Range)}.flatten.uniq;
    Regexp.new(args.join("|"))
  end

end

p(lambda{

if "zero 19" =~ Regexp.build(1..10)
  true
else
  false
end

}.call)